package com.whfc.fmam.service;

import com.whfc.common.exception.BizException;
import com.whfc.fmam.entity.dto.FmamAccessTokenDTO;
import com.whfc.fmam.entity.dto.FmamClientDTO;
import com.whfc.fmam.entity.qo.AccessTokenQO;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/10/16 8:56
 */
public interface FmamApiTokenService {

    /**
     * 获取accessToken
     *
     * @param accessTokenQO
     * @return
     */
    FmamAccessTokenDTO getAccessTokenDTO(AccessTokenQO accessTokenQO) throws BizException;

    /**
     * 根据accessToken获取当前客户端信息
     *
     * @param accessToken
     * @return
     */
    FmamClientDTO validateAccessToken(String accessToken) throws BizException;
}
